package com.heima.behavior.service;
import com.heima.model.behavior.dtos.*;
import com.heima.model.behavior.pojos.ApBehaviorEntry;
import com.heima.model.common.dtos.ResponseResult;

public interface ApBehaviorEntryService {
     /**
      * 查询行为实体
      * @param userId  用户id
      * @param equipmentId  设备id
      * @return
      */
     ApBehaviorEntry findByUserIdOrEquipmentId(Integer userId, Integer equipmentId);
     ResponseResult like(LikesBehaviorDTO dto);
     ResponseResult readBehavior(ReadBehaviorDTO dto);
     ResponseResult unlikeBehavior(UnLikesBehaviorDTO dto);
     ResponseResult collectBehavior(CollectionBehaviorDTO dto);
     ResponseResult loadArticleBehavior(ArticleBehaviorDTO dto);

}